package com.example.elderlycare.controller.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

public class NotifyRequestBody {
    @Data
    public static class addNotify {
        private String title;
        private String content;
        private String department;
        private String publisher;
    }

    @Data
    public static class updateNotify {
        private Integer id;
        private String title;
        private String content;
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date releaseTime;
        private String department;
        private String publisher;
    }
}
